package demo5;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        CardDemo cardDemo=new CardDemo();
        cardDemo.createDeck();
        System.out.println(cardDemo.deck);
        cardDemo.shuffleDeck();
        System.out.println(cardDemo.deck);
        List<List<Card>> persons=new ArrayList<>();
        persons.add(new ArrayList<>());
        persons.add(new ArrayList<>());
        persons.add(new ArrayList<>());

        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < persons.size(); j++) {
                persons.get(j).add(cardDemo.deck.get(i));
                cardDemo.deck.remove(i);
            }
        }

        for(List<Card> person:persons){
            System.out.println(person);
        }
        System.out.println(cardDemo.deck);
    }
}
